home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / hips / sources / tools / makefile.src < prev    next >
Encoding:
Makefile  |  1993-08-23  |  1.7 KB  |  78 lines

  1. #
  2. # makefile for user-contributed/lbl/hips/sources/tools
  3. #
  4.  
  5. PGMS =    append.out hexdump.out histo_simulate.out mdisphist.out \
  6.     magicprint.out mem-test.out
  7.  
  8. PGM3 =    mainpeak.out mean_scale.out mhisto.out mixadd.out mixmul.out
  9.  
  10. PGM5 =    elastic.out frame.out \
  11.     multi_mask.out powertool.out rotate90n.out
  12.  
  13. PGMC = to_stream.out to_jfif.out
  14.  
  15. # PSDIR set in config file
  16. PSFLAGS = "-DLDLIB=\"$(LIBDIR)/magicprint.pro\""
  17. MFONT = \"NewCenturySchlbk-Bold\"
  18. FontFlag = -DMFont=$(MFONT)
  19.  
  20. LOCAL_INC = $(CCS_ROOT)/include
  21. PUBLICLIB = -lccs -ltiff -lrle $(LIBRARY) $(OTHERLIBS) $(OTHERLIB2) $(CPPFLAGS2)
  22. LIBRARIE1 = $(LDFLAGS) -lscs1 $(PUBLICLIB)
  23. LIBRARIE2 = $(LDFLAGS) -lscs2 $(PUBLICLIB)
  24. LIBRARIE3 = $(LDFLAGS) -lscs3 $(PUBLICLIB)
  25. LIBRARIE5 = $(LDFLAGS) -lscs5 $(PUBLICLIB) -ljpeg
  26. LIBRARIEC = $(LDFLAGS) -ljpeg -lscs1 $(PUBLICLIB)
  27. CPPFLAGS2 = $(CPPFLAGS) -I$(LOCAL_INC) -DHIPS_IMAGE -DCOMMON_TOOL
  28. MASKLOC = -DMY_LIB=\"$(MASK3DIR)/mask\"
  29.  
  30. .c.out:
  31.     $(LINKc) $* $< $(LIBRARIE2)
  32.     mv $* $(DESTDIR)
  33.     @touch $@
  34.  
  35. install:    $(PGMS)    $(PGM3) $(PGM5) $(PGMC)
  36.  
  37. clean:    clean-pgm
  38. clean-all:    clean_all
  39.  
  40. man:
  41.  
  42. doc:
  43.  
  44. pristine:    pristine-pgm
  45.  
  46.  
  47. # Routines which require special parameters
  48.  
  49. $(PGMC):
  50.     $(LINKc) $* $< $(LIBRARIEC) 
  51.     mv $* $(DESTDIR)
  52.     @touch $@
  53.  
  54. $(PGM3):
  55.     $(LINKc) $* $< $(LIBRARIE3)
  56.     mv $* $(DESTDIR)
  57.     @touch $@
  58.  
  59. $(PGM5):
  60.     $(LINKc) $* $< $(LIBRARIE5)
  61.     mv $* $(DESTDIR)
  62.     @touch $@
  63.  
  64. mdisphist.out:    mdisphist.c
  65.     cc -O -o mdisphist mdisphist.c $(LIBRARIE2)
  66.     mv $* $(DESTDIR)
  67.     @touch $@
  68.  
  69. # it is very important to test print magin for setting MGPOffset (0.04 - 0.6).
  70. magicprint.out: magicprint.c
  71.     $(LINKc) $* $< $(PSFLAGS) $(FontFlag) -DMGPOffset=0.2 $(LIBRARIE5)
  72.     mv $* $(DESTDIR)
  73.     cp magicprint.pro $(LIBDIR)
  74.     chmod 664 $(LIBDIR)/magicprint.pro
  75.     @touch $@
  76.  
  77. FRC:
  78.